$OpenBSD: patch-Makefile_in,v 1.4 2015/02/10 16:02:05 kspillner Exp $
--- Makefile.in.orig	Thu Jan 29 06:31:11 2015
+++ Makefile.in	Mon Feb  9 14:47:19 2015
@@ -13,7 +13,7 @@ docdir :=	@docdir@
 mandir :=	@mandir@
 localedir :=	$(datadir)/locale
 emacsdir :=	$(datadir)/emacs/site-lisp
-etcdir :=	$(subst /usr/etc,/etc,$(prefix)/etc)
+etcdir :=	@sysconfdir@
 
 INSTALL :=	@INSTALL@
 POD2MAN :=	@POD2MAN@
@@ -315,9 +315,11 @@ install-main :: scripts
 	$(INSTALL) -m 644 quilt/scripts/patchfns quilt/scripts/utilfns	\
 		   $(BUILD_ROOT)$(datadir)/$(PACKAGE)/scripts
 ifneq ($(PATCH_WRAPPER),)
+ifneq ($(PATCH_WRAPPER), no)
 	$(INSTALL) -d $(BUILD_ROOT)$(datadir)/$(PACKAGE)/wrapper
 	$(INSTALL) -m 755 bin/patch-wrapper				\
 		   $(BUILD_ROOT)$(datadir)/$(PACKAGE)/wrapper/patch
+endif
 endif
 
 	$(INSTALL) -d $(BUILD_ROOT)$(docdir)/
